/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    device_timer.h
 *  @brief   Designware timer device header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 *  @author  liuchao
 ****************************************************************/

#ifndef __DEVICE_TIMER_H__
#define __DEVICE_TIMER_H__

#include "dw_timer.h"


/**
 * \name	DesignWare TIMER Object Number
 * @{
 */
#define DW_TIMER_NUM              (8)     /*!< DesignWare TIMER valid number */
/** @} end of name */

/**
 * \name	Designware TIMER Object ID Macros
 * @{
 */
#define DW_TIMER_0_ID             0       /*!< TIMER 0 id macro */
#define DW_TIMER_1_ID             1       /*!< TIMER 1 id macro */
#define DW_TIMER_2_ID             2       /*!< TIMER 2 id macro */
#define DW_TIMER_3_ID             3       /*!< TIMER 3 id macro */
#define DW_TIMER_4_ID             4       /*!< TIMER 4 id macro */
#define DW_TIMER_5_ID             5       /*!< TIMER 5 id macro */
#define DW_TIMER_6_ID             6       /*!< TIMER 6 id macro */
#define DW_TIMER_7_ID             7       /*!< TIMER 7 id macro */


/** @} end of name */

/**
 * \name	Designware TIMER Object Control Macros
 * @{
 */
#define USE_DW_TIMER_0            1       /*!< enable use designware TIMER 0 */
#define USE_DW_TIMER_1            1       /*!< enable use designware TIMER 1 */
#define USE_DW_TIMER_2            1       /*!< enable use designware TIMER 2 */
#define USE_DW_TIMER_3            1       /*!< enable use designware TIMER 3 */
#define USE_DW_TIMER_4            1       /*!< enable use designware TIMER 4 */
#define USE_DW_TIMER_5            1       /*!< enable use designware TIMER 5 */
#define USE_DW_TIMER_6            1       /*!< enable use designware TIMER 6 */
#define USE_DW_TIMER_7            1       /*!< enable use designware TIMER 7 */

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
}
#endif

#endif /* __DEVICE_TIMER_H__ */
